package com.jinzecloud.reportapproval.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinzecloud.reportapproval.bean.SafetyAssessment;
import com.jinzecloud.reportapproval.dto.AuditParam;
import com.jinzecloud.reportapproval.dto.DataStagingParam;
import com.jinzecloud.reportapproval.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SafetyAssessmentService extends IService<SafetyAssessment> {

    /**
     * 查询审核列表
     * @param param
     * @return
     */
    IPage<SafetyAssessment> auditList(DataStagingParam param);

    /**
     * 审核
     * @param auditParam
     * @return
     */
    R audit(AuditParam auditParam);

    String getReportFilePath(String id, HttpServletRequest request);

    JSONObject safetyAssessmentJson(String projectUuid);

    String viewPdf(Integer id);

    R saveSafetyAssessment(SafetyAssessment safetyAssessment);

    SafetyAssessment getProductNumber(String projectNumber);

    String viewWord(Integer id);
}
